﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvaliacaoOnline.Data;
using System.Configuration;

namespace AvaliacaoOnline.Model
{
    public class LoginService
    {
        public Usuario EfetuarLogin(string login, string senha)
        {
            AvaliacaoOnlineContext context = AvaliacaoOnlineContext.GetContext();
            
            return context.Usuario.Include("Cliente").Where(c => c.Login == login && c.Senha == senha).FirstOrDefault();
        }
    }
}
